package com.xiyi.shouxin.entity.admin;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import lombok.Data;

@Data
@Table(value = "menu")
public class Menu {
    @Id
    @Column(value = "id")
    private Long id;
    @Column(value = "name")
    private String name;
    @Column(value = "path")
    private String path;
    @Column(value = "title")
    private String title;
    /*
     * 1：需要权限，0：不需要
     */
    @Column(value = "requires_auth")
    private Integer requiresAuth;
    @Column(value = "order")
    private Integer order;
    @Column(value = "icon")
    private String icon;
    /*
     * 1：固定页，0：不固定
     */
    @Column(value = "pin_tab")
    private Integer pinTab;
    /*
     * 菜单类型：'dir','page'
     */
    @Column(value = "menu_type")
    private String menuType;
    /*
     * 组件路径
     */
    @Column(value = "component_path")
    private String componentPath;
    /*
     * 父级id
     */
    @Column(value = "pid")
    private Long pid;

}
